*{
  margin: 0px;
  padding: 0px;
  font-family: sans-serif;
  font-weight: bold;
  box-sizing: border-box;

}
body {
    font-family: Arial, sans-serif;
    margin: 0;
/*    padding: 50px 20px;*/
    background: #1f1c2c;
    color: #fff;
        overflow-x: hidden;

  }

/*header*/
.header{
  background: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px;
  color: white;
  flex-wrap: wrap;
  position: fixed;
  z-index: 1000;
  width: 100%;
}
.logo img{

}

.icon{
  color: white;
  font-size: 30px;
  display: none;
}
#xicon{
  display: none;
}
.menu ul{
  display: flex;
  list-style: none;
}
.menu ul li{
  padding: 0px 20px;
}
.menu ul li a{
  color: white;
  text-decoration: none;
  font-size: 20px;
}
/*change next time*/
.menu ul li a:hover{
  color: skyblue;
  border-bottom: 3px   dotted skyblue;
}
/*home*/
#home{
  padding: 150px;
  background: linear-gradient(10deg, #000000, #1a1a1a);
  color: white;
  text-align: center;
}
#home h4{
  font-size: 40px;
}
#home h5{
  font-size: 25px;
}
#home .bb{
  background: purple;
  border: 2px dotted cyan;
  line-height: 50px;
  border-radius: 20px;

}
#home a{
  text-decoration: none;
  color: white;
  font-size: 20px;

}
#home .bb:hover{
  background: blue;
  transition: 5s;
} #home .bb a:hover{
  color: cyan;
  transition: 5s;

}
/*about*/
#about {
  background: green;

}

#about h2{
  text-align: center;
  padding: 40px 0px;
  font-size: 40px;
  color: brown;
  font-family: sans-serif;
  font-weight: bold;

}
.about_width{
  max-width: 1200px;
  margin: auto;
  display: flex;
  padding-bottom: 40px;
  justify-content: space-evenly;
  align-items: center;
/*  height: 100vh;*/

}
.aboutcol1{
  flex-basis: 50%;
}
.aboutcol1 img{
  width: 350px;
  height: 350px;
  border-radius: 70%;
}
.aboutcol2{
  flex-basis: 50%;
  background: linear-gradient(90deg, #3a3a3a, #5c6bc0, #ab47bc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

}
.aboutcol2 p{
  color: #222222;
  font-size: 25px;
}
.aboutcol2 h2{
  font-size: 35px;
}
.aboutcol2 button{
  border: 2px solid red;
  padding: 20px 30px;
  border-radius: 30px;
  background: none;
}
.aboutcol2 button a{
  font-size: 30px;
  color: grey;
  text-decoration: none;
}




@keyframes blink {
  50% { border-color: transparent; }
}

#about {
  text-align: center; /* center alignment for section */
  padding: 80px 0;
  background: linear-gradient(135deg, #fdfbfb, #ebedee, #c9d6ff, #e2e2e2);
}


@keyframes typing {
  from { width: 0; }
  to { width: 9ch; } /* 'About Me' = 8 letters + 1 space */
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Text type hone ka effect */
@keyframes typing {
  from { width: 0; }
  to { width: 12ch; } /* My Services = 11 letters + space */
}

/* Cursor blink effect */
@keyframes blink {
  50% { border-color: transparent; }
}

/*skill*/
.skill-bg{
  background: linear-gradient(135deg, #ff9a9e, #a1c4fd, #c2e9fb);
}
.skill-bg h2{
  text-align: center;
  padding: 40px 0px;
  font-size: 40px;
  font-family: sans-serif;
  font-weight: bold;
  color: darkblue;
}
.skill-bg{
  padding-bottom: 40px;
}
.skills{
  display: grid;
  grid-template-columns: repeat(1,3fr);
  max-width: 1000px;
  margin: auto;
  padding: 10px 0px;
  gap: 30px;
}
.skill{
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}
.skill label{
  font-size: 30px;
  font-family: sans-serif;
  font-weight: bold;
  background: linear-gradient(90deg, #ffffff, #e3f2fd, #bbdefb);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

}
.progress{
  overflow: hidden;
  background: grey;
  border-radius: 50px;
  text-align: center;
  line-height: 30px;

}
.pregress-fill {
  color: white;
  font-size: 25px;
}
.html{ 
  background: linear-gradient(135deg, #43cea2, #185a9d, #2b5876); 
  max-width: 95%
}
.css{
  background: linear-gradient(135deg, #ff9966, #ff5e62, #ff758c);
  max-width: 85%
 }
 .js{
  background: linear-gradient(135deg, #36d1dc, #5b86e5, #2f80ed);
  width: 75%;
 }
 .boos{
  background: linear-gradient(135deg, #11998e, #38ef7d, #56ab2f);
  width: 90%;
 }
 .php{
  width: 60%;
  background: linear-gradient(135deg, #fc5c7d, #6a82fb, #a1c4fd);
 }
 .ui{
  width: 95%;
 }
/* project*/
/* Make all project cards same height */
.project-cols3 .pc1,
.project-cols3 .pc3 {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spreads content evenly */
  height: 100%; /* allows cards to stretch to match row height */
}

/* Ensure all images have consistent height */
.project-cols3 .pc1 .pimg img,
.project-cols3 .pc3 .pc3img img {
  height: 280px; /* uniform image height for all cards */
  object-fit: contain;
  overflow: hidden;
}
#img{
  height: 400px;
}

/* Optional: padding at bottom of text for button alignment */
.project-cols3 .pc1 .ptext,
.project-cols3 .pc3 .pc3text {
  padding-bottom: 20px;
}

.project {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364, #4ca1af, #c2e9fb);
}

.project h2 {
  text-align: center;
  font-size: 40px;
  padding-bottom: 40px;
  background: linear-gradient(90deg, #fdfbfb, #e3f2fd, #ffe0f0, #e0f7fa, #fffde7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

/* ========== TWO COLUMN PROJECTS ========== */
.project-cols2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.pc1 {
  flex: 1 1 45%;
  background: #fff8e7;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pc1:hover {
  transform: translateY(-5px);
}

.pimg {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ptext {
  padding: 20px;
  text-align: center;
}

.ptext h3 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #333;
}

.ptext p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* Button */
.pbtn {
  display: inline-block;
  padding: 12px 25px;
  background: #2e8b57;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s ease;
}

.pbtn:hover {
  background: #1f5e3b;
}

/* ========== THREE COLUMN PROJECTS ========== */
.p3cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto 0;
}

.pc3 {
  flex: 1 1 30%;
  background: #fff8e7;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.pc3:hover {
  transform: translateY(-5px);
}

.pc3img {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.pc3img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc3text {
  padding: 20px;
  text-align: center;
}

.pc3text h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.pc3text p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}
.project-cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
  align-items: start;
}

.project-cols3 .pc1 {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s;
}

.project-cols3 .pc1:hover {
  transform: translateY(-5px);
}
.project-cols3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.pc1, .pc3 {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s;
}

.pc1:hover, .pc3:hover {
  transform: translateY(-5px);
}

.pbtn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  transition: background 0.3s;
}

.pbtn:hover {
  background: #0056b3;
}



/* ===== SERVICES SECTION ===== */
.services {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #fff;
  text-align: center;
}

/* Animated Heading (beautiful gradient + typing animation) */
.animate-text {
  font-size: 42px;
  background: linear-gradient(90deg, #fdfbfb, #ffe0f0, #fffde7, #e0f7fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.4);
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid rgba(255,255,255,0.6);
  width: 0;
  margin: auto;
  animation: typing 3s steps(20, end) forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 300px; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ===== GRID ===== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 60px auto 0;
}

/* ===== CARD ===== */
.service-card {
  flex: 1 1 calc(30% - 20px);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Icon */
.service-card i {
  font-size: 40px;
  color: #00e0ff;
  margin-bottom: 15px;
  transition: 0.3s;
}

.service-card:hover i {
  color: #76ff03;
  transform: rotate(10deg);
}

/* Text animation */
.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
  animation: fadeInUp 1s ease forwards;
}

.service-card p {
  font-size: 14px;
  color: #dcdcdc;
  line-height: 1.6;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .service-card {
    flex: 1 1 calc(45% - 20px);
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
  .animate-text {
    font-size: 30px;
    width: 220px;
  }
}
 
  .contact-section {
    max-width: 900px; /* thoda aur wide */
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 160px; /* gap zyada kar diya */
}
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 40px; /* vertically stack ho jaaye */
    }
    .contact-info, .contact-form-wrap {
        width: 100%;
    }
}


/* Contact Info aur Form width fix karte hain */
.contact-info {
    width: 40%; /* left column */
}

.contact-form-wrap {
    width: 55%; /* right column */
}


  .contact-section {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
/*    flex-direction: column;*/
    gap: 140px;
  }

  /* Contact Info */
  .contact-info {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
  }

  .contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 400px;
  }

  .contact-info p {
    margin: 10px 0;
    font-size: 1rem;
    width: 400px;
  }

  .contact-info i {
    margin-right: 6px;
    color: #00c6ff;
  }

  .contact-info .social a {
    margin-right: 15px;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s;
  }

  .contact-info .social a:hover {
    color: #00c6ff;
  }

  /* Contact Form */
  .contact-form-wrap {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
  }

  .contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    outline: none;
  }

  .captcha-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .captcha-code {
    font-weight: bold;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
  }

  .buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  button, .btn-secondary {
    flex: 1 1 48%;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
  }

  button {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
  }

  button:hover {
/*    background: linear-gradient(90deg, #0072ff, #00c6ff);*/
  }

  .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
  }

  .btn-secondary:hover {
    background: #00c6ff;
    border-color: #00c6ff;
    color: #fff;
  }

  .message {
    margin-top: 15px;
    font-weight: bold;
  }
